package com.xyht.sca_s.student_manage_system.modules.mailbox.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author XYHT
 * @since 2022-12-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_mailbox")
@ApiModel(value="SmsMailbox对象", description="")
public class SmsMailbox implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "匿名：0：是；1：否")
    private Integer anonymous;

    @ApiModelProperty(value = "发送内容")
    private String sendContent;

    @ApiModelProperty(value = "发布人")
    private String sender;

    @ApiModelProperty(value = "回复部门")
    private String replyDepartment;

    @ApiModelProperty(value = "回复内容")
    private String replyContent;

    @ApiModelProperty(value = "是否公开：0：不公开；1：公开")
    private Integer isOpen;

    @ApiModelProperty(value = "回复状态：0：待回复，1：已回复")
    private String status;

    @ApiModelProperty(value = "发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sendTime;

    @ApiModelProperty(value = "回复时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date replyTime;

    @ApiModelProperty(value = "浏览量")
    private Integer view;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑：0：否；1：是")
    @TableLogic
    private Integer isDeleted;

    private String sendUserId;

}
